package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author mdf
 * @title: DesignatedRideState
 * @description: TODO
 * @date 2024/3/5 16:36
 */
public enum DesignatedRideState {
    pick_up(0, "司机已接单"),
    in_area(1, "到达上车点"),
    start(2, "行程已开始"),
    end(3, "行程已结束"),
    paid(4, "支付成功");



    @EnumValue
    private final int code;
    private final String desc;

    DesignatedRideState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
